from django.urls import path
from rest_framework.routers import DefaultRouter
from . import views
router = DefaultRouter()  # 有根路由
# router.register(r'apppath', views.ApppathView)
router.register(r'goods', views.GoodsView)


urlpatterns = [
   path('payurl/',views.PayUrlView.as_view()),
   path('payment/',views.PayMentView.as_view()),

]

urlpatterns += router.urls  # 模块地址
# print(router.urls)